#include "conezomb.h"

conezomb::conezomb() {
    m_conezomb.load(CONEZOMB_PATH);
    m_X= GAME_WIDTH;
    m_Y=0;
    m_Free=true;
    m_speed=CONEZOMB_SPEED;
    m_Rect.setWidth(m_conezomb.width());
    m_Rect.setHeight(m_conezomb.height());
    m_Rect.moveTo(m_X,m_Y);


}

void conezomb::updatePosition()
{
        if(m_Free){
            return;
        }

        m_X-=m_speed;
        m_Rect.moveTo(m_X,m_Y);


    }

